﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类INSPECTION_LINE_INFO
     ///</summary>
     public class INSPECTION_LINE_INFO
     {
         private int __ID=0 ;
         private string __LINE_NAME=string.Empty ;
         private int? __LINE_ID=null ;
         private string __JCXHMS=string.Empty ;
         private string __LINE_TYPE=string.Empty ;
         private string __LINE_IP=string.Empty ;
         private int? __STA_ID=null ;
         private string __STA_NAME=string.Empty ;
         private string __STA_IP=string.Empty ;
         private string __STA_PORT=string.Empty ;
         private string __STA_DEVID=string.Empty ;
         private string __REMARK=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public INSPECTION_LINE_INFO()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("LINE_NAME",false);
             this.__Changed.Add("LINE_ID",false);
             this.__Changed.Add("JCXHMS",false);
             this.__Changed.Add("LINE_TYPE",false);
             this.__Changed.Add("LINE_IP",false);
             this.__Changed.Add("STA_ID",false);
             this.__Changed.Add("STA_NAME",false);
             this.__Changed.Add("STA_IP",false);
             this.__Changed.Add("STA_PORT",false);
             this.__Changed.Add("STA_DEVID",false);
             this.__Changed.Add("REMARK",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__LINE_NAME =string.Empty;
             this.__LINE_ID =null;
             this.__JCXHMS =string.Empty;
             this.__LINE_TYPE =string.Empty;
             this.__LINE_IP =string.Empty;
             this.__STA_ID =null;
             this.__STA_NAME =string.Empty;
             this.__STA_IP =string.Empty;
             this.__STA_PORT =string.Empty;
             this.__STA_DEVID =string.Empty;
             this.__REMARK =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["LINE_NAME"] = false;
             this.__Changed["LINE_ID"] = false;
             this.__Changed["JCXHMS"] = false;
             this.__Changed["LINE_TYPE"] = false;
             this.__Changed["LINE_IP"] = false;
             this.__Changed["STA_ID"] = false;
             this.__Changed["STA_NAME"] = false;
             this.__Changed["STA_IP"] = false;
             this.__Changed["STA_PORT"] = false;
             this.__Changed["STA_DEVID"] = false;
             this.__Changed["REMARK"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[LINE_NAME]的数据
         /// </summary>
         public string LINE_NAME
         {
              set{ __LINE_NAME = value.Replace("'","’"); __Changed["LINE_NAME"] = true;}
              get{return __LINE_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[LINE_ID]的数据
         /// </summary>
         public int? LINE_ID
         {
              set{ __LINE_ID = value; __Changed["LINE_ID"] = true;}
              get{return __LINE_ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCXHMS]的数据
         /// </summary>
         public string JCXHMS
         {
              set{ __JCXHMS = value.Replace("'","’"); __Changed["JCXHMS"] = true;}
              get{return __JCXHMS;}
         }
         /// <summary>
         ///设置或获取类中的[LINE_TYPE]的数据
         /// </summary>
         public string LINE_TYPE
         {
              set{ __LINE_TYPE = value.Replace("'","’"); __Changed["LINE_TYPE"] = true;}
              get{return __LINE_TYPE;}
         }
         /// <summary>
         ///设置或获取类中的[LINE_IP]的数据
         /// </summary>
         public string LINE_IP
         {
              set{ __LINE_IP = value.Replace("'","’"); __Changed["LINE_IP"] = true;}
              get{return __LINE_IP;}
         }
         /// <summary>
         ///设置或获取类中的[STA_ID]的数据
         /// </summary>
         public int? STA_ID
         {
              set{ __STA_ID = value; __Changed["STA_ID"] = true;}
              get{return __STA_ID;}
         }
         /// <summary>
         ///设置或获取类中的[STA_NAME]的数据
         /// </summary>
         public string STA_NAME
         {
              set{ __STA_NAME = value.Replace("'","’"); __Changed["STA_NAME"] = true;}
              get{return __STA_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[STA_IP]的数据
         /// </summary>
         public string STA_IP
         {
              set{ __STA_IP = value.Replace("'","’"); __Changed["STA_IP"] = true;}
              get{return __STA_IP;}
         }
         /// <summary>
         ///设置或获取类中的[STA_PORT]的数据
         /// </summary>
         public string STA_PORT
         {
              set{ __STA_PORT = value.Replace("'","’"); __Changed["STA_PORT"] = true;}
              get{return __STA_PORT;}
         }
         /// <summary>
         ///设置或获取类中的[STA_DEVID]的数据
         /// </summary>
         public string STA_DEVID
         {
              set{ __STA_DEVID = value.Replace("'","’"); __Changed["STA_DEVID"] = true;}
              get{return __STA_DEVID;}
         }
         /// <summary>
         ///设置或获取类中的[REMARK]的数据
         /// </summary>
         public string REMARK
         {
              set{ __REMARK = value.Replace("'","’"); __Changed["REMARK"] = true;}
              get{return __REMARK;}
         }
    }
}
